﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp16
{
    class Student
    {
        public int age { get; set; }
        public int id { get; set; }
        public string name { get; set; }
        public Student( int id,string name, int age) {
            this.id = id;
            this.name = name;
            this.age = age;
        }
        //public Student(int id1, string name1, int age1) { 
        
        //}
        public override string ToString()
        {
            return $"年龄:{age}       学号:{id}      姓名:{name} ";
        } 
    }
}
